package com.atguigu.gulimall.ware.service;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.ware.vo.MergeVo;
import com.atguigu.gulimall.ware.vo.PurchaseDoneVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;


public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageUnreceivePurchase(Map<String, Object> params);

    //合并采购需求
    R merge(MergeVo mergeVo);

    //领取采购单
    void received(List<Long> purchaseIds);


    //完成采购
    void done(PurchaseDoneVo purchaseDoneVo);
}

